/**
 * 
 */
package com.onlinemathuracrud.model.master;

import java.io.Serializable;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * @author Amit Kashyap
 * @createdDate Sep 10, 2013
 * @createdTime 8:44:31 PM
 */
@Entity
@Table(name="city")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class City implements Serializable{
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 111628329855191092L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "city_id", unique = true, nullable = false)
	private Long cityId;
	
	@Column(name = "city_name", unique = true, nullable = false)
	private String cityName;
	
	@Column(name = "city_description")
	private String cityDescription;

	/**
	 * @return the cityId
	 */
	public Long getCityId() {
		return cityId;
	}

	/**
	 * @param cityId the cityId to set
	 */
	public void setCityId(Long cityId) {
		this.cityId = cityId;
	}

	/**
	 * @return the cityName
	 */
	public String getCityName() {
		return cityName;
	}

	/**
	 * @param cityName the cityName to set
	 */
	public void setCityName(String cityName) {
		this.cityName = cityName;
	}

	/**
	 * @return the cityDescription
	 */
	public String getCityDescription() {
		return cityDescription;
	}

	/**
	 * @param cityDescription the cityDescription to set
	 */
	public void setCityDescription(String cityDescription) {
		this.cityDescription = cityDescription;
	}
	
}
